home *** CD-ROM | disk | FTP | other *** search
/ PC Player 2004 May / pc player 2004-05.iso / Demos / FarCry / Data1.cab / _0943787D564F4EE5A5861CE90D85BC54 < prev    next >
Encoding:
Text File  |  2004-01-06  |  4.2 KB  |  94 lines

  1.  
  2. function PipeManager:OnInitScientist()
  3.     System:Log("SCIENTIST PIPES LOADED");
  4.     
  5.     
  6.     AI:CreateGoalPipe("scientist_runAway");
  7.     AI:PushGoal("scientist_runAway","bodypos",0,BODYPOS_STEALTH);
  8.     AI:PushGoal("scientist_runAway","run",0,0);
  9.     AI:PushGoal("scientist_runAway","firecmd",0,0);
  10.     AI:PushGoal("scientist_runAway","hide",1,10,HM_NEAREST);
  11.     AI:PushGoal("scientist_runAway","timeout",1,1,2);
  12.  
  13.     
  14.     AI:CreateGoalPipe("scientist_defend");
  15.     AI:PushGoal("scientist_defend","firecmd",0,1);    
  16.     AI:PushGoal("scientist_defend","timeout",1,1,3);
  17.     
  18.     AI:CreateGoalPipe("scientist_hideNow");
  19.     AI:PushGoal("scientist_hideNow","firecmd",0,1);    
  20.     AI:PushGoal("scientist_hideNow","hide",1,10,HM_NEAREST);
  21.     AI:PushGoal("scientist_hideNow","bodypos",0,1);
  22.     AI:PushGoal("scientist_hideNow","signal",0,1,"SCIENTIST_NORMALATTACK",0);
  23.     
  24.     AI:CreateGoalPipe( "scientist_randomhide");
  25.     AI:PushGoal("scientist_randomhide","AIS_LookForThreat");
  26.     --AI:PushGoal("scientist_randomhide","lookaround",0,1);    
  27.     AI:PushGoal("scientist_randomhide","randomhide");
  28.     
  29.     AI:CreateGoalPipe( "scientist_grabGun");
  30.     AI:PushGoal("scientist_grabGun","bodypos",0,0);
  31.     AI:PushGoal("scientist_grabGun","run",0,1);
  32.     AI:PushGoal("scientist_grabGun","Trace_Anchor"); -- f. PipeManagerCombat.lua
  33.     AI:PushGoal("scientist_grabGun","signal",0,1,"SCIENTIST_PICKUP_GUN",0);
  34.     AI:PushGoal("scientist_grabGun","devalue_anchor"); -- f. PipeMangerJob.lua;
  35.  
  36.     AI:CreateGoalPipe("scientist_cower");
  37.      AI:PushGoal("scientist_cower","firecmd",0,0);
  38.     AI:PushGoal("scientist_cower","timeout",1,0,1);
  39.     AI:PushGoal("scientist_cower","signal",1,1,"ACT_SCARED",SIGNALID_READIBILITY);
  40.     AI:PushGoal("scientist_cower","bodypos",0,BODYPOS_CROUCH);
  41.     
  42.     
  43.     AI:CreateGoalPipe( "scientist_PushAlarm");
  44.     AI:PushGoal("scientist_PushAlarm","ignoreall",1,1);
  45.     AI:PushGoal("scientist_PushAlarm","bodypos",0,0);
  46.     AI:PushGoal("scientist_PushAlarm","run",0,1);
  47.     AI:PushGoal("scientist_PushAlarm","Trace_Anchor");
  48.     AI:PushGoal("scientist_PushAlarm","devalue_anchor");
  49.     AI:PushGoal("scientist_PushAlarm","signal",0,1,"SCIENTIST_PUSH_ALARM",0);
  50.  
  51.     AI:CreateGoalPipe( "scientist_PullAlarm");
  52.     AI:PushGoal("scientist_PullAlarm","ignoreall",1,1);
  53.     AI:PushGoal("scientist_PullAlarm","bodypos",0,0);
  54.     AI:PushGoal("scientist_PullAlarm","run",0,1);
  55.     AI:PushGoal("scientist_PullAlarm","Trace_Anchor");
  56.     AI:PushGoal("scientist_PullAlarm","devalue_anchor");
  57.     AI:PushGoal("scientist_PullAlarm","signal",0,1,"SCIENTIST_PULL_ALARM",0);
  58.     
  59.     AI:CreateGoalPipe( "scientist_table_crouch");
  60.     AI:PushGoal("scientist_table_crouch","ignoreall",1,1);
  61.     AI:PushGoal("scientist_table_crouch","bodypos",0,0);    
  62.     AI:PushGoal("scientist_table_crouch","run",0,1);
  63.     AI:PushGoal("scientist_table_crouch","pathfind",1,"");
  64.     AI:PushGoal("scientist_table_crouch","trace",1,1);
  65.     AI:PushGoal("scientist_table_crouch","lookat",1,0,0);
  66.     AI:PushGoal("scientist_table_crouch","bodypos",0,2);    
  67.     AI:PushGoal("scientist_table_crouch","approach",1,0.8);
  68.     AI:PushGoal("scientist_table_crouch","bodypos",0,1);    
  69.     AI:PushGoal("scientist_table_crouch","lookaround",0,0);
  70.     AI:PushGoal("scientist_table_crouch","timeout",1,1,6);    
  71.     AI:PushGoal("scientist_table_crouch","lookat",1,0,180);
  72.     AI:PushGoal("scientist_table_crouch","devalue_anchor");
  73.     AI:PushGoal("scientist_table_crouch","ignoreall",1,0);
  74. --    AI:PushGoal("scientist_table_crouch","signal",0,1,"SCIENTIST_NORMALATTACK",0);        
  75.     
  76.     AI:CreateGoalPipe( "scientist_table_prone");
  77.     AI:PushGoal("scientist_table_prone","ignoreall",1,1);
  78.     AI:PushGoal("scientist_table_prone","bodypos",0,0);    
  79.     AI:PushGoal("scientist_table_prone","run",0,1);
  80.     AI:PushGoal("scientist_table_prone","pathfind",1,"");
  81.     AI:PushGoal("scientist_table_prone","trace",1,1);
  82.     AI:PushGoal("scientist_table_prone","lookat",1,0,0);
  83.     AI:PushGoal("scientist_table_prone","bodypos",0,2);    
  84.     AI:PushGoal("scientist_table_prone","approach",1,0.8);
  85.     AI:PushGoal("scientist_table_prone","lookaround",0,0);
  86.     AI:PushGoal("scientist_table_prone","timeout",1,1,6);
  87.     AI:PushGoal("scientist_table_prone","lookat",1,0,180);
  88.     AI:PushGoal("scientist_table_prone","devalue_anchor");
  89.     AI:PushGoal("scientist_table_prone","ignoreall",1,0);
  90. --    AI:PushGoal("scientist_table_prone","signal",0,1,"SCIENTIST_NORMALATTACK",0);    
  91. end
  92.  
  93.  
  94.